<?php
/* @var $this CustomerController */
/* @var $model Customer */

$this->breadcrumbs=array(
	'Customers'=>array('index'),
	'Manage',
);

if(isset(Yii::app()->session['adminUser'])){
	$this->menu=array(
		array('label'=>'Create Customer', 'url'=>array('create')),
	);
}else{
	$this->menu=array(
		array('label'=>'- No Action -', 'url'=>array('')),
	);
}

/*Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$('#customer-grid').yiiGridView('update', {
		data: $(this).serialize()
	});
	return false;
});
");*/
?>

<h1>List Customers</h1>

<?php 
$myclass = get_class($this);
$myclass= strstr($myclass,'Controller',true);
$tempFullAction=false;

if(isset(Yii::app()->session['adminUser']) ){
	$tempFullAction=true;
}

$this->widget('application.extensions.tablesorter.Sorter', array(
    'data'=>$records,
    'columns'=>array(
		'customer',
		'email',
		'phone',
	),
	'filters'=>array(
        '',
        '',
        'filter-false'
    ),
    'fullAction'=>$tempFullAction,
    'view'=>$myclass,
	'model'=>1,
));

?>